<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.dems.dao.StudentDao"%>
<%@ page import="com.dems.domain.Student"%>
<%@ page import="javax.servlet.http.HttpSession" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<title>申请维修</title>
	</head>
<style>
.save_form h2{
  margin: 0 0 20px;
  padding: 0;
  text-align: center;
}
.save_form{
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 400px;
  padding: 60px 40px;
  background-color: rgba(255,0,255,.8);
  box-shadow: 0 15px 20px rgba(0,0,0,.2);
  border-radius: 20px;
}
.save_form input{
  margin-top: 10px;
}
.save_form input[type='submit']{
  background-color: #e91e63;
  color: #fff;
  border: none;
  width: 100px;
  height: 20px;
  cursor: pointer;
  vertical-align:middle;
  margin-left: 150px;
}
.save_form input[type='submit']:hover{
  background-color: #0090ff;
}
</style>
	<body>
	 <form action="<%=request.getContextPath() %>/SaveRepairServlet" method="POST">
	 <div class="save_form">
	 	<h2>申请维修</h2>
	 	<table>
	 	<tr>
	 		<td>请核对您的学号:</td>
	 		<td><input type="text" name="studentNum" value="${sessionScope.student.studentNum }" readonly="readonly"></td>
	 	</tr>
	 	<tr>
	 		<td> 请选择维修类型:</td>
	 		<td>
	 			<input type="radio" name="repairType" value="水工" checked="checked"> 水工
        		<input type="radio" name="repairType" value="电工"> 电工
           		<input type="radio" name="repairType" value="木工"> 木工
	 		</td>
	 	</tr>
		<tr>
	 		<td>请输入维修描述:</td>
	 		<td><textarea name="repairDescription"  placeholder="请输入维修描述"></textarea></td>
	 	</tr>
	 	<tr>
	 		<td colspan="2"><input type="submit" value="申请"></td>
	 	</tr>
		</table>
		</div>
      </form>
	</body>
</html>